package cn.lj.service;

import cn.lj.dao.UserDao;
import cn.lj.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public User login(String username, String password) {
        // 通过用户名及密码核查用户登录
        return userDao.findByUserNameAndPassword(username,password);
    }
}
